{{ template "header_start" . }}
{{ template "global" .}}
{{ template "firmware" . }}
{{ template "header_end" . }}
{{ template "nav" . }}

<section class="option ul-horizontal">
<ul>
<li><h3>小功能集录<a href="#" class="js-additem btn">添加</a></h3></li>
<li>

<input type="text" class="input-text input-middle" placeholder="写个名字，我去找找看" />
<span class="btn btn-info" id="search">找一找</span>

</li>
</ul>

<div class="search-result ul-horizontal not-display">
<table class="table">
<thead>
	<tr><td>名称</td><td>描述</td></tr>
</thead>
<tbody>
</tbody>
</table>
<hr class="red-line" />
</div>

</section>

<section id="item-content" class="ul-horizontal item-common no-display">
<header>
	<button type="button" class=" close-up close js-close">×</button>
	<h3 class="title">添加条目</h3>
	<br class="clear " />
</header>
<section class="content">
<dl class="dl-horizontal">
    <dt>名称</dt>
    <dd><input class="input-text input-middle" type="text" name="classify" placeholder="firmware name" required/></dd>
    <dt>描述</dt>
    <dd><div class="jk-input-text" name="content"><span class="tips">What you want to record ...</span></div></dd>
</dl>
</section>
<footer>
	<button class="btn btn-info btn-middle pull-right" id="sure">确定</button>
	<br class="clear" />
</footer>
</section>

<div class="ul-horizontal">
<table class="table">
<thead>
	<tr><td>名称</td><td>描述</td><td>操作</td></tr>
</thead>
<tbody>
{{ range $test := .D.Body.firmware }}
<tr>
	<td><input class="input-text input-middle" type="text" name="classify" value="{{ $test.Classify }}" disabled="disabled" /></td>
	<td><div class="jk-input-text-none" name="content">{{$test.Content}}</div></td>
	<td><button type="button" class='mod btn btn-warn'>修改</button><button type="button" class='del btn btn-danger'>删除</button></td>
</tr>
{{ end }}
</tbody>
</table>

<input type="hidden" name="mode" value="test" />
</div>

{{ template "footer" . }}